package cn.wei.sdd.core.service.impl;

import cn.wei.sdd.core.pojo.entity.Notice;
import cn.wei.sdd.core.mapper.NoticeMapper;
import cn.wei.sdd.core.service.NoticeService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Wei
 * @since 2022-02-19
 */
@Service
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> implements NoticeService {

    @Override
    public List<Notice> getUpNoticeList() {
        QueryWrapper<Notice> noticeQueryWrapper = new QueryWrapper<>();
        noticeQueryWrapper.eq("status",1);
        return baseMapper.selectList(noticeQueryWrapper);
    }
}
